<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>供应商平台</title>
</head>
<body class="tob-wrap">
	<div th:replace="common/top"></div>
	<article class="container container-c50-create-order clearfix">
		<div th:replace="common/left::c_side"></div>
		<section class="content">
			<div class="m-crumb">
				<p>
					<a href="#">订单管理 > </a> <span>标题标题</span>
				</p>
			</div>
			<div class="m-forms">
				<div class="m-forms-tip">
					提示：本页由甲方填写，合同项下其他信息如：里程碑、具体采购物品，可以由乙方补充完成。如要自己完成，<br />
					请点击“保存并填写下一项”，如由乙方补充，请点击“确定并返回”
				</div>
				<form id="form_create_contract"
					action="../client/createContract.htm" method="post"
					th:object="${purchaseOrder}">
					<input type="hidden" th:field="*{purchaseOrderNo}" />
					<p>
						<label for="">订单编号 : </label><span class="span-label"
							th:text="${purchaseOrder.purchaseOrderNo}">采购订单号</span>
					</p>
					<p>
						<label for="">时间 : </label> 
						<span class="span-calendar"> <input class="input input-datepicker" type="text" th:field="*{startTime}" /> <i class="icon icon-calendar"></i></span> 
						<span class="span-label mlr-10">至</span> 
						<span class="span-calendar"> <input class="input input-datepicker" type="text" th:field="*{expiredTime}" /> <i class="icon icon-calendar"></i></span>
					</p>
					<p>
						<label for="">供应商 : </label> 
						<span class="span-label" th:text="${pipelinePublic.tVendor.tSupplier.companyName}">供应商名称</span>
						<input type="hidden" name="vendorId" th:value="${pipelinePublic.tVendor.id}" />
						<input type="hidden" name="supplierId" th:value="${pipelinePublic.tVendor.tSupplier.id}"/>
						<input type="hidden" name="pipelinePublicId" th:value="${pipelinePublic.id}"/>
					</p>
					<p>
						<label for="companyId">签约甲方 : </label> 
						<select id="companyId" class="select select-w140" th:field="*{companyId}" style="width:250px;">
							<option th:each="company : ${companyList}" th:value="${company.id}" th:text="${company.companyName}">集团子公司</option>
						</select>
					</p>
					<p>
						<label for="interOrderNo">内部采购订单号 : </label> 
						<input id="interOrderNo" class="input" type="text" placeholder="请输入" th:field="*{internalPurchaseOrderNo}"/>
					</p>
					<p>
						<label for="purchaseOrderDesc">订单描述 : </label> 
						<input id="purchaseOrderDesc" class="input" type="text" placeholder="请输入" th:field="*{purchaseOrderDesc}" />
					</p>
					<p>
						<label for="purchaseOrga">采购组 : </label> 
						<select id="purchaseOrga" class="select" onchange="javascript: changPurchaseOrganization(this);">
							<option value="-1">请选择</option>
							<option th:each="purchaseOrg : ${purchaseOrgList}" th:value="${purchaseOrg.id}" th:text="${purchaseOrg.organizationName}">请选择</option>
						</select>
					</p>
					<p>
						<label for="">送货地址 : </label> 
						<select class="select select-w140" th:field="*{provinceId}" onchange="javascript: changProvince(this);">
							<option value="-1">请选择</option>
							<option th:each="province : ${pList}" th:value="${province.id}"
								th:text="${province.provinceName}">Wireframe</option>
						</select> <span class="span-label mlr-10">省</span> <select id="tcity"
							class="select select-w140" th:field="*{cityId}">
							<option value="-1">请选择</option>
						</select> <span class="span-label mlr-10">市</span> <input class="input"
							type="text" placeholder="请输入" th:field="*{address}" />
					</p>
					<p>
						<label for="contract_responsor">合同负责人 : </label> 
						<select class="select" th:field="*{userId}" id="responsorUserId">
							<option value="-1">请选择</option>
						</select>
					</p>
					<p>
						<label for="currency">币种 : </label> <select class="select"
							th:field="*{currency}" id="currency">
							<option th:each="currency : ${currencyTypeList}"
								th:value="${currency.val}" th:text="${currency.desc}">Wireframe</option>
						</select>
					</p>
					<p>
						<label for="price">合同总金额 : </label> 
						<input class="input" type="text" placeholder="请输入" th:field="*{price}" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')"/>
					</p>
					<p class="btn-bar">
						<input type="hidden" id="contract_form_submit_type"
							name="submitType" value="1" /> <a class="btn btn-cyan btn-small"
							onclick="javascript: submitContractForm(1);">确定修改</a> <a
							class="btn btn-simple btn-small"
							onclick="javascript: submitContractForm(2);">保存并填写下一项</a>
					</p>
				</form>
			</div>
		</section>
	</article>
</body>
<script data-main="../js/page/b1_supplier"
	src="../lib/requirejs/require.js"></script>
<script type="text/javascript" src="../lib/jquery/dist/jquery.js"></script>
<script type="text/javascript" src="../js/customer/customer.js"></script>
</html>